package cn.francis.zp.service;

import cn.francis.ai.api.AIChatService;
import cn.francis.zp.common.ZhiPuChatClientUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author 张俊辉
 */

@Slf4j
@Service
public class ZhiPuAIChatServiceImpl implements AIChatService {


    @Override
    public String chat(String prompt) {
        return ZhiPuChatClientUtil.callChatModel(prompt);
    }
}
